home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1998 July / EnigmA AMIGA RUN 29 (1998)(G.R. Edizioni)(IT)[!][issue 1998-07 & 08].iso / recent / gms_pi.lha / COMPILE_PICTURES.TXT next >
Text File  |  1998-06-21  |  2KB  |  41 lines

  1.  
  2. This source code requires the Version 1.1 developer archive on Aminet
  3. (dev/misc/gms_dev.lha).  Compilation of this module means that you have
  4. read and agreed to the text in the DISTRIBUTION.TXT file.
  5.  
  6. You have to do a slight install before compilation, just copy the new files
  7. in the Includes/ directory to the appropriate place on your HD.  If using
  8. Dice, copy the tags.o file to Dlib:, and because of a change to the
  9. pragmas, you must now insert a line of "#define _DCCTAGS TRUE" into your
  10. normal program files, OR link the tags.o file into your programs.
  11.  
  12. NOTE:  There is a bug in SAS/C which occurs when using registers a0 and a1
  13. together in a function.  This only happens when both registers are using a
  14. pointer type, such as BYTE *, APTR or struct Object *.  So if you see such
  15. definitions being replaced with LONGs and then being converted inside the
  16. function, it is done specifically to prevent this bug.
  17.  
  18. To compile every part of the pictures module with SAS/C:
  19.  
  20.   1> sc pic_data.c          <Compile the data area>
  21.   1> sc pictures.c          <Compile the code>
  22.   1> sc pic_init.c          <Compile the code>
  23.   1> sc pic_copystructure.c <Compile the code>
  24.   1> sc pic_functions.c     <Compile the code>
  25.   1> link.scr               <Link it>
  26.  
  27. To compile with DiceC:
  28.  
  29.   1> dcc -c -l0 -mD -mi pic_data.c -o pic_data.o
  30.   1> dcc -c -l0 -mD -mi pictures.c -o pictures.o
  31.   1> dcc -c -l0 -mD -mi pic_init.c -o pic_init.o
  32.   1> dcc -c -l0 -mD -mi pic_copystructure.c -o pic_copystructure.o
  33.   1> dcc -c -l0 -mD -mi pic_functions.c -o pic_functions.o
  34.   1> dlink pic_data.o pictures.o pic_init.o pic_copystructure.o
  35.        pic_functions.o tags.o cs.lib -o GMS:System/pictures.mod
  36.  
  37. To compile everything at once using dice, just execute the compile.dcc
  38. script (will take a while though).  The compile.sas script does the
  39. same for SAS/C.
  40.  
  41.